import os
file_path = 'D:\Python项目包\单元测试'
file_names = os.listdir(file_path)
i = 1
with open(os.path.join(file_path, file_names[i]), 'r', encoding='utf-8') as f:
    txt = f.read()
    print(txt)
